README for the Replication Files
"Placebo Selection In Survey Experiments: An Agnostic Approach"

System details:
MacOS Mojave 10.14.5
R version 3.6.1
dplyr 1.0.2, broom 0.7.2, ggplot2 3.3.2, estimatr 0.20.0, texreg 1.37.5, readr 1.4.0, grid 3.6.1, forcats 0.4.0

Files:
placebo_replication.R - script to reproduce all statistical tables and figures in the paper
placebo_experiment.csv - experiment data set
placebo.qsf - Qualtrics template for implementing study design 
placebo_generation_using_gpt_2.py - Copy of Google Colab code

Table 3 
Lines 16-21 of "placebo_replication.R"

Table 5
Lines 23-30 of "placebo_replication.R"

Figure 1
Lines 40-81 of "placebo_replication.R"

Figure 2
Lines 83-123 of "placebo_replication.R"

Appendix 

Figure 3
Lines 129-194 of "placebo_replication.R"

Figure 4
Lines 196-246 of "placebo_replication.R"

Placebo API: http://ourlocalcommunities.com/placebo.php
Accepts integer between 1 and 4696 (example usage: http://ourlocalcommunities.com/placebo.php?num=1)

Link to GPT-2 code: https://colab.research.google.com/drive/1FXEWr4NB6y6IPkUsTHiHJWyDk6FaCufC?usp=sharing
Note: GPT-2 code will produce vignettes of similar style to those used in the study, but will not reproduce the original vignettes. 
